// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import './assets/style/reset.css'
import './assets/font/iconfont.css'
import router from './router'
import 'lib-flexible'
import pub from './assets/script/pub.js'
import { Header, Button, Toast, MessageBox, Indicator, Cell, Tabbar, TabItem, TabContainer, TabContainerItem, Swipe, SwipeItem } from 'mint-ui'
Vue.prototype.$pub = pub
Vue.prototype.$toast = Toast
Vue.component(Header.name, Header)
Vue.component(Button.name, Button)
Vue.component(Toast.name, Toast)
Vue.component(Cell.name, Cell)
Vue.component(Tabbar.name, Tabbar)
Vue.component(TabItem.name, TabItem)
Vue.component(TabContainer.name, TabContainer)
Vue.component(TabContainerItem.name, TabContainerItem)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
